package demo2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class demo2 {

    public static void main(String[] args) throws Exception
    {
        AnnotationConfigApplicationContext an = new AnnotationConfigApplicationContext("demo2");
        student stu = an.getBean(student.class);
        System.out.println(stu);
    }
}